﻿#ifndef DATABASECONNECTOR_H
#define DATABASECONNECTOR_H

#include <qobject.h>
#include "ObjAutoInject.h"
#include <qsqldatabase.h>

#include "LogSaver.h"

class DataBaseConnector : public QObject, public ObjAutoInject
{
  Q_OBJECT
private://property
private://dependency
  LogSaver* logSaver=LogSaver::getLogSaver();
public:
  explicit DataBaseConnector();
  virtual ~DataBaseConnector();
public:
  bool connectToDataBase();
  QSqlQuery exec(QString mysql);
signals:
public://geter and seter
};

#endif // DATABASECONNECTOR_H
